package com.richpay.basejava.base03;

import java.util.Scanner;

public class BoyAndGirl {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入你本次的考试分数:");
        int score = scanner.nextInt();
        if (score > 90) {

            System.out.print("请输入您的性别");
            String gender = scanner.next();
            //在java中判断字符串的内容是否相等使用的是equals()方法
            if ("男".equals(gender)) {
                System.out.print("恭喜你,进入了男队!");
            } else if ("女".equals(gender)) {
                System.out.print("恭喜你,进入了女队!");
            } else {
                System.out.print("你输入的性别有误!");
            }

        } else {
            System.out.print("很不幸，你出局了!");
        }
        System.out.println("程序结束");
    }
}